<?php

namespace App\Models\ActivityModel;

use App\Support\Database\Eloquent\UuidModel;

class ActivityModel extends UuidModel
{
    const ACTIVITY_MODEL_VOTE = 'vote';

    protected $fillable = [
        'id', 'name', 'rule',
    ];

    public function Activity()
    {
        return $this->hasMany('App\Models\Activity\Activity', 'model_id');
    }

    public function getId()
    {
        return $this->id;
    }

    public function getName()
    {
        return $this->name;
    }

    public function getRule()
    {
        return $this->rule;
    }
}
